package com.datacloud.dao;

import com.datacloud.bean.RoutesBean;
import com.datacloud.bean.TireEventsBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 
 * 轮胎事件接口类
 * 
 **/
public interface TireEventsDao {
    //轮胎检查
    int insertTireCheckInfo(@Param("tireid")int tireid,@Param("step")int step,@Param("executorid")int executorid,
                            @Param("memo")String memo,@Param("reasonid")int reasonid);
//    在车检查的轮位操作
    int insertCarsTireCheck(@Param("id")int tireid);
    List<TireEventsDao>findAllMemo();

    //    添加装上轮胎事件
    int installTire(TireEventsBean install);
    //    添加卸下轮胎事件
    int unloadTire(TireEventsBean unload);
    //    添加轮位1装上轮胎事件信息
    int install1Tire(TireEventsBean install1);
    //    添加轮位1卸下轮胎事件信息
    int unload1Tire(TireEventsBean unload1);
    //    添加轮位2装上轮胎事件信息
    int install2Tire(TireEventsBean install2);
    //    添加轮位2卸下轮胎事件信息
    int unload2Tire(TireEventsBean unload2);

    //轮胎出库事件
    int tireOutgoing(@Param("tireid")int tireid,@Param("stockid")int stockid);
//        翻新入库事件
    int renovated(@Param("tireid")int tireid,@Param("stockid")int stockid);
//        配送入库事件
    int distribution(@Param("tireid")int tireid,@Param("stockid")int stockid);
}
